home *** CD-ROM | disk | FTP | other *** search
- Path: engr.sgi.com!shankar
- From: shankar@mti.sgi.com (Shankar Unni)
- Newsgroups: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
- Subject: Re: SGI and C++
- Followup-To: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
- Date: 20 Feb 1996 20:11:16 GMT
- Organization: Silicon Graphics, Inc., Mountain View, CA
- Message-ID: <4gd9t4$4kk@fido.asd.sgi.com>
- References: <4f609s$rho@fu-berlin.de> <4f6726$4ch@fido.asd.sgi.com> <4fahih$s13@fu-berlin.de> <4fbhs0$eo3@fido.asd.sgi.com> <4fl2nh$b66@sun20.ccd.bnl.gov> <4ga186$bk2@oban.cc.ic.ac.uk> <4gar2s$905@fido.asd.sgi.com> <4gb2rg$b99@nntp1.u.washington.edu>
- Reply-To: shankar@engr.sgi.com
- NNTP-Posting-Host: boris.mti.sgi.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Laurence Yaffe (lgy@newton.phys.washington.edu) wrote:
-
- > Is there any similar problem with inlining non-member template functions?
-
- No.
-
- > What is the easiest way to tell if a function actually did get inlined?
-
- Run "nm" on a .o that calls the inline function, and see if there's a
- symbol for the name of the inline function. If there is, that function did
- not get inlined in one or more places..
-
- (Actually, in releases before patch 556, turning on -g would cause dummy
- bodies to be emitted for inline functions - the theory being that you would
- maybe want to call them from a debugger command line - but we've stopped
- doing that now. Still, this "nm" test is really reliable only for an object
- compiled without -g).
-
- We're looking into putting in warnings in the compiler whenever it can't
- inline something that's declared inline. This wouldn't have caught the
- template case above (that was a plain bug where the compiler dropped the
- respecification on the floor), however..
- --
- Shankar Unni E-Mail: shankar@sgi.com
- Silicon Graphics Inc. Phone: +1-415-933-2072
- URL: http://reality.sgi.com/employees/shankar
-